package com.wt.admin.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wt.admin.domain.entity.sys.SysMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysMenuMapper extends BaseMapper<SysMenuEntity> {

    List<SysMenuEntity> findByIds(@Param("ids") List<Integer> menuIds);

    @Select("select * from sys_menu order by order_num")
    List<SysMenuEntity> selectAll();
}
